import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 设备状态记录
 */
@Entity('iot_device_status')
export class IotDeviceStatusEntity extends BaseEntity {
  @Index()
  @Column({ comment: '设备ID' })
  deviceId: string;

  @Column({ comment: '当前状态' })
  status: string;

  @Column({ comment: '上报时间' })
  reportTime: Date;
}